<?php
$root = realpath($_SERVER["DOCUMENT_ROOT"]) . "/SmartTuition/SmartTuition.Model"; 
// including base class, EntityWithID
require_once("$root/Models/Base/EntityWithID.php");

class Group extends EntityWithID
{
    private $name;
    private $year;
    private $studentId;

    function __construct($id,$name, $year, $student_id) {
        parent::__construct($id);
        $this->name = $name;
        $this->year = $year;
        $this->studentId = $student_id;
        $this->columns = "Name, Year, StudentID";
    }

    public function getName() {
        return $this->name;
    }

    public function getYear() {
        return $this->year;
    }

    public function getStudentId() {
        return $this->studentId;
    }

    public function getValues() {
        $str = "'" .  $this->name .  "','" . $this->year .  "'," . $this->studentId;
        return $str;
    }
}